# obj = ts
# src= test.cc
# CFLAG = -std=c++17 -I /home/kxf/bitrpc/build/release-install-cpp11/include
# LFLAG = -L/home/kxf/bitrpc/build/release-install-cpp11/lib -lmuduo_net -lmuduo_base
# $(obj): $(src)
# 	g++ -o $@ $^ -std=c++17  $(CFLAG) $(LFLAG) -ljsoncpp 

# .PJHONU:clean
# clean:
# 	rm -f $(obj)

# obj1 = svr
# obj2 = cl
# obj3 = reg
# src1= rpc_server.cc
# src2= rpc_client.cc
# src3= register_server.cc
# CFLAG = -std=c++17 -I /home/kxf/bitrpc/build/release-install-cpp11/include
# LFLAG = -L/home/kxf/bitrpc/build/release-install-cpp11/lib -lmuduo_net -lmuduo_base -ljsoncpp

# all : $(obj1) $(obj2) $(obj3)

# $(obj1): $(src1)
# 	g++ -o $@ $^ $(CFLAG) $(LFLAG)
# $(obj2): $(src2)
# 	g++ -o $@ $^ $(CFLAG) $(LFLAG)
# $(obj3): $(src3)
# 	g++ -o $@ $^ $(CFLAG) $(LFLAG)

# .PJHONU:clean
# clean:
# 	rm -f $(obj1) $(obj2) $(obj3)

obj1 = svr
obj2 = pub
obj3 = sub
src1= Publish_server.cc
src2= Publish_client.cc
src3= subscribe_client.cc
CFLAG = -std=c++17 -I /home/kxf/bitrpc/build/release-install-cpp11/include
LFLAG = -L/home/kxf/bitrpc/build/release-install-cpp11/lib -lmuduo_net -lmuduo_base -ljsoncpp

all : $(obj1) $(obj2) $(obj3)

$(obj1): $(src1)
	g++ -g -o $@ $^ $(CFLAG) $(LFLAG)
$(obj2): $(src2)
	g++ -g -o $@ $^ $(CFLAG) $(LFLAG)
$(obj3): $(src3)
	g++ -g -o $@ $^ $(CFLAG) $(LFLAG)

.PJHONU:clean
clean:
	rm -f $(obj1) $(obj2) $(obj3)